home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / pdc / include / fcntl.h < prev    next >
C/C++ Source or Header  |  1990-04-05  |  1KB  |  39 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /*  fcntl.h
  18.  *
  19.  *  Structures and symbolic constants used by PDC to manage file I/O.
  20.  */
  21.  
  22. #define O_RDONLY    0x0000
  23. #define O_WRONLY    0x0001
  24. #define O_RDWR        0x0002
  25. #define O_CREAT        0x0100
  26. #define O_TRUNC        0x0200
  27. #define O_EXCL        0x0400
  28. #define O_APPEND    0x0800
  29. #define O_STDIO        0x1000
  30.  
  31. struct _device {
  32.     long    _fileHandle;    /* Actually, a (struct FileHandle *)    */
  33.     long    _mode;        /* The mode flags of this device    */
  34.     };
  35.  
  36. #define OPEN_MAX    20
  37. extern short _numdev;
  38.  
  39. #define DEF_PMODE 0666L